package cn.tedu.epidemic.service;

import cn.tedu.community.commons.pojo.comment.dto.CommentAddNewDTO;
import cn.tedu.community.commons.pojo.comment.vo.CommentListItemVO;
import cn.tedu.community.commons.restful.JsonPage;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface CommentService {
    void insert(CommentAddNewDTO addNewDTO);

    JsonPage<CommentListItemVO> commentListByPage(Long forumId, Integer page, Integer pageSize);

    void deleteByIdAndUserId(Long comId);

    void deleteByIdForumId(Long id,Long forumId);

    String addLike(Long commentId);

}
